package castledefense.logic.pathfinding;

import pathfinding.grid.GridPath;
import castledefense.logic.units.Mover;

public class PositionMover {
	
	private int x;
	private int y;
	private int type;
	private Mover mover;
	private GridPath path;
	
	public PositionMover(Mover mover){
		x = mover.getCellX();
		y = mover.getCellY();
		type = mover.getMoverType();
		this.mover = mover;
	}
	
	public int getX(){
		return x;
	}
	
	public int getY(){
		return y;
	}
	
	public int getType(){
		return type;
	}
	
	/**
	 * DONT FREAKING CALL THIS METHODS EVER
	 * (except when you set the path in the LinkForPathfinding class)
	 * @return
	 */
	public Mover getMover(){
		return mover;
	}
	
	public GridPath getPath(){
		return path;
	}
	
	public void setPath(GridPath path){
		this.path = path;
	}

}
